package com.yutian.selfservice.support.upload.handler.storage;

import com.yutian.selfservice.support.upload.config.UploadConfig;
import com.yutian.selfservice.support.utils.Result;
import org.springframework.web.multipart.MultipartFile;

/**
 * 存储接口
 */
public interface Storage {
    /**
     * 存储接口 result-data为可以直接访问的url路径
     * @param multipartFile
     * @param
     * @return
     */
    Result storage(MultipartFile multipartFile, UploadConfig.UploadProperties uploadProperties);
}
